plow-technologies / inferno

A statically-typed functional scripting language
MIT License
4 stars 1 forks source link

Fix slow parsing of tuple patterns and types #51

Open siddharth-krishna opened 1 year ago

siddharth-krishna commented 1 year ago

Example script:

fun x -> match x with {
  | ((((((((((((x)))))))))))) -> 2
}
image

We should use tupleElems instead of tupleArgs (slower) in Parse.hs for tuple patterns and type lists as well.