anoma / juvix

A language for intent-centric and declarative decentralised applications
https://docs.juvix.org
GNU General Public License v3.0
457 stars 53 forks source link

@? syntax errors #3155

Open mariari opened 2 weeks ago

mariari commented 2 weeks ago

Describe the bug

Stdlib.Prelude> snoc@?{elem := 5}
Maybe.fromJust: Nothing
CallStack (from HasCallStack):
  error, called at libraries/base/Data/Maybe.hs:150:21 in base:Data.Maybe
  fromJust, called at src/Juvix/Compiler/Internal/Translation/FromConcrete.hs:873:16 in juvix-0.6.6-63HcRSLJPON7XBeV31D9oO:Juvix.Compiler.Internal.Translation.FromConcrete

Desktop (please complete the following information):

To Reproduce Steps to reproduce the behavior:

Expected behavior No idea what this syntax should do