You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
There's nothing equivalent to this for PM_HASH_NODE or PM_KEYWORD_HASH_NODE for knowing whether or not there's a **splat, so each element needs to always be type-checked for PM_ASSOC_NODE vs PM_ASSOC_SPLAT_NODE.
The text was updated successfully, but these errors were encountered:
@amomchilov is this something you would need for Sorbet? I'm trying to figure out the use-case here. The flags in the array are because you might be able to get away with not duplicating an array if there's a splat, so it's mostly a compiler-level concern.
Arrays have the
PM_ARRAY_NODE_FLAGS_CONTAINS_SPLAT
flag, which tells you if there's a*splat
, or if all the elements are just plain elements.prism/config.yml
Lines 661 to 664 in acfeade
There's nothing equivalent to this for
PM_HASH_NODE
orPM_KEYWORD_HASH_NODE
for knowing whether or not there's a**splat
, so each element needs to always be type-checked forPM_ASSOC_NODE
vsPM_ASSOC_SPLAT_NODE
.The text was updated successfully, but these errors were encountered: