Timeline for Tips for golfing in Scala 3
Current License: CC BY-SA 4.0
7 events
when toggle format | what | by | license | comment | |
---|---|---|---|---|---|
Oct 14, 2022 at 14:09 | history | edited | user | CC BY-SA 4.0 |
added 83 characters in body
|
Oct 14, 2022 at 14:09 | comment | added | user | @stewSquared Aww, didn't notice that. When I wrote the answer, either experimental features were still available in the main release or this wasn't considered an experimental feature. I'll edit the answer to state that | |
Sep 25, 2022 at 4:07 | comment | added | stewSquared | This doesn't seem to be true in 2022 with Scala 3.2.0. Ohhh wait it's an experimental feature that can't be used in the main release. | |
Sep 8, 2020 at 16:27 | comment | added | user |
@Bubbler Yup, fixed it. Unfortunately, they only allow the same format as ordinary Int s and Double s (afaik)
|
|
Sep 8, 2020 at 16:25 | history | edited | user | CC BY-SA 4.0 |
added 240 characters in body
|
Sep 8, 2020 at 9:08 | comment | added | Bubbler |
It would be interesting (and worth mentioning) if 1e9 typechecks when used as BigInt , since scientific notation is usually treated as a float literal, not int, and typechecked as such. Hex is also a thing when used for large enough integers.
|
|
Sep 7, 2020 at 19:00 | history | answered | user | CC BY-SA 4.0 |