jimn
11/21/2019, 10:09 AMhttps://files.slack.com/files-pri/T09229ZC6-FP3NH4PCJ/image.png▾
Fudge
11/21/2019, 10:41 AMFudge
11/21/2019, 10:41 AMkioba
11/21/2019, 10:42 AM[ ]
syntax. Of course I never took the time to learn it properly so that is on me but can be tricky 🙂
On the other hand tho F# and Haskell has some really nice operators which can significantly reduce the overhead we have to write 🤔 and as my kowledge matures around Haskell I tend to use more and more operators.Fudge
11/21/2019, 10:42 AMFudge
11/21/2019, 10:43 AMkioba
11/21/2019, 10:43 AMFudge
11/21/2019, 10:43 AMFudge
11/21/2019, 10:44 AMFudge
11/21/2019, 10:44 AMkioba
11/21/2019, 10:45 AMjimn
11/21/2019, 10:45 AMFudge
11/21/2019, 10:45 AMkioba
11/21/2019, 10:46 AMFudge
11/21/2019, 10:47 AMjimn
11/21/2019, 10:47 AMjimn
11/21/2019, 10:54 AMjimn
11/21/2019, 10:57 AMjimn
11/21/2019, 10:59 AMjimn
11/21/2019, 11:08 AMelizarov
11/21/2019, 12:27 PMjimn
11/21/2019, 12:57 PMjimn
11/21/2019, 12:59 PMfoo=["a","b"]
sub=a[1:]
elizarov
11/21/2019, 12:59 PMjimn
11/21/2019, 1:02 PMelizarov
11/21/2019, 1:02 PM..
in Kotlin. a[1..3]
looks as good as a[1:3]
to me if not better, actually. Open-range operators (1..
and ..3
) are not supported, but adding them would be far less-intrusive that a whole new operator just for slicing.elizarov
11/21/2019, 1:04 PMelizarov
11/21/2019, 1:05 PMjimn
11/21/2019, 1:13 PMjimn
11/21/2019, 1:15 PMoperator Nothing.get(vararg x:T)=listOf(*x)
would also be an easy and pleasant addition to operator overloading possibilities, i have seen this compaint a few times alreadyjimn
11/21/2019, 1:17 PMjimn
11/21/2019, 1:20 PMjimn
11/21/2019, 1:21 PMHullaballoonatic
11/21/2019, 6:49 PMelizarov
11/21/2019, 7:32 PMelizarov
11/21/2019, 7:32 PMjimn
11/21/2019, 10:37 PMHullaballoonatic
11/21/2019, 10:40 PMjimn
11/21/2019, 10:40 PMjimn
11/21/2019, 10:43 PMjimn
11/21/2019, 10:46 PMjimn
11/21/2019, 10:48 PMjimn
11/21/2019, 11:00 PMjimn
11/21/2019, 11:05 PMjimn
11/21/2019, 11:10 PM