RoyalIcing / Orb

Write WebAssembly with Elixir
https://useorb.dev
BSD 3-Clause "New" or "Revised" License
174 stars 1 forks source link

Add “did you mean?” to `call(:typo_name)` #2

Closed RoyalIcing closed 10 months ago

RoyalIcing commented 11 months ago

Use https://hexdocs.pm/elixir/String.html#jaro_distance/2 in the same way the Elixir compiler does to suggest the closest name when there’s a call to a function slightly misspelled.

RoyalIcing commented 10 months ago

With defw this is no longer needed, as Elixir functions are defined for us.