We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
args := ['abc.txt', 'foo.md', 'bar.md'] md_files := []string(args.filter(fun (a string) bool { return a.ends_with(".md") }))
for file in []string(md_files) { }
first snippet:
error: expression evaluated but not used
second snippet:
error: unexpected lpar, expecting lcur
No errors.
It's planned to unify the casting syntax to var as Type. Thus fixing this issue before is not advisable.
var as Type
Bait 0.0.2-dev
Arch Linux Node 19.9.0
The text was updated successfully, but these errors were encountered:
Type casting on arrays should actually be forbidden except for matching type aliases:
type Arr := []i32 fun x(a Arr){ println(typeof(a)) println(a) } fun main() { n := [1,2] as Arr x(n) x([1,2] as Arr) }
Sorry, something went wrong.
No branches or pull requests
Description and Reproduction Steps
Current Behavior
first snippet:
second snippet:
Expected Behavior
No errors.
Possible Solution and Additional Information
It's planned to unify the casting syntax to
var as Type
.Thus fixing this issue before is not advisable.
Bait version
Bait 0.0.2-dev
Environment details (OS name and version, Node.js version, etc.)
Arch Linux
Node 19.9.0
The text was updated successfully, but these errors were encountered: