Matthew Lutze

Results 310 comments of Matthew Lutze

Yes, get option + isdefinedat seem to cover the bases.

> Using Option for array would have unacceptable performance cost (for arrays). If you want performance then you don't have to use getOption, right?

> > > But if you add say isValidIndex or whatever that would seem to require two lookups > > > > You can add a getter that returns option...

Does this mean I can no longer have this? ``` mod Foo { mod Bar { } } ```

This seems to be a problem in the Scallop library. It seems that toggle options don't like to see other toggle options: https://github.com/scallop/scallop/blob/0f290269a69e22068629294c864ad2bd9a2c3ff1/src/main/scala/org.rogach.scallop/CliOptions.scala#L263-L278

Not afaik. Should probably look almost exactly like ToString

I'd say it's very nice to have in the StdLib but can go in some `Random` module.

> [@mlutze](https://github.com/mlutze) We agree this should (conceptually) work? Yes (though AnyEff vs Pure is a debate to be had)