rise-lang / shine

The Shine compiler for the RISE language
https://rise-lang.org
MIT License
73 stars 8 forks source link

Update function casting syntax after move to Scala 3 #234

Open michel-steuwer opened 2 years ago

michel-steuwer commented 2 years ago

We should update the current function casting syntax

k.as[In `=` Array[Array[Float]] `,` Array[Float], Out[Array[Float]]]

towards

k.asFun[Args[Array[Array[Float]] `,` Array[Float]] => Array[Float]]

once we have moved to Scala 3. A sketch implementation is available here: https://scastie.scala-lang.org/ndV4Xu8RQZWlZRYCc6GAig