prism icon indicating copy to clipboard operation
prism copied to clipboard

A superclass/module/interface/flag for static literals

Open eregon opened this issue 2 years ago • 1 comments

Extracted from #1296 item 1.

It would be nice to have a LiteralNode superclass or included module in those, and that would guarantee a value method which returns the literal value. Related: YP_NODE_FLAG_STATIC_LITERAL from #1451 and https://github.com/ruby/yarp/pull/1290.

eregon avatar Sep 16 '23 10:09 eregon

For this one we already have a flag internally but we don't expose it. I'd like to expose it going forward

kddnewton avatar Dec 14 '23 18:12 kddnewton