Replies: 1 comment 2 replies
-
Grain doesn't leverage the object oriented paradigm very heavily so being able to attach methods to types likely won't be added, but when #403 and #402 get implemented (they're on the radar but aren't an immediate priority right now) you'd be able to use |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Grain looks very cool, but I've searched a little about object methods and found nothing. It looks like instead of
"".charAt(i)
you've to doString.charAt(i, "")
. It'd be nice if there was something like:Then you can do
"".charAt(i)
. You should be able to putself
anywhere.Beta Was this translation helpful? Give feedback.
All reactions