6 ms·
Great opinion. I do agree $ is very un-Java, either. But I don't want "shuffle" to be in-place method by default. I agree with @jdmichal that it should return
by liuyang1204 11y ago
Great opinion.
I do agree $ is very un-Java, either.
But I don't want "shuffle" to be in-place method by default. I agree with @jdmichal that it should return new copy.
In this case how to design the in-place way is not obvious.
I'm the main author of fig. This project is started for just a week. All of your suggestion are very supportive and I'm checking the feedback to make fig better.
- ramblerman 11y agoI would simply not have in place modifiers. Focus your programming efforts instead on adding other cool high level constructs on lambdas. See underscore or scala for inspiration.
- ARussell 11y agoYou could take a page from Scala's book and create separate immutable and mutable versions, e.g. Seq vs Queue.