This repository has been archived by the owner on Apr 15, 2024. It is now read-only.
Float(string) and similar functions need a better translation #25
Labels
bug
Something isn't working
gryphon library
Affects the Gryphon Swift or Kotlin libraries
no solution yet
It is not yet clear how to solve this issue
The current translation of
Float(string)
turns it intostring.toFloat()
. This can be a problem when the translations fail: the Swift version returnsnil
and the Kotlin version throws an error.This problem seems to be similar to that in #2.
A way to solve both these problems (and possibly more to come) is to add something like this to the GryphonKotlinLibrary:
It might seem unintuitive to users at first, but it might be better than creating several individual functions to fix each of these problems.
The text was updated successfully, but these errors were encountered: