I would look more to Groovy/Ruby/Coffeescript for a bit of inspiration.
> --
> You received this message because you are subscribed to the Google Groups
> "The Java Posse" group.
> To post to this group, send email to java...@googlegroups.com.
> To unsubscribe from this group, send email to
> javaposse+...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/javaposse?hl=en.
This defines an inline extension method on the String class, what inline means is that the bytecode for the method is COPIED inline at the callsite.
This defines an inline extension method on the String class, what inline means is that the bytecode for the method is COPIED inline at the callsite.There's a difference between inlining (which we know from C/C++) and static linking. I'm actually puzzles at why the definition-site "inline" keyword made its way back into Kotlin, compiler heuristics is pretty good at knowing when to inline. It probably has to do with non-local jumps, but that feels like a leaky abstraction and I'd much rather have some kind of call-site inlining then.
--
You received this message because you are subscribed to the Google Groups "The Java Posse" group.
To view this discussion on the web visit https://groups.google.com/d/msg/javaposse/-/TAXlsuNlxaoJ.