Project

General

Profile

Actions

Misc #19772

closed

API naming for YARP compiler

Added by jemmai (Jemma Issroff) 10 months ago. Updated 8 months ago.

Status:
Closed
Assignee:
-
[ruby-core:114222]

Description

We are working on the YARP compiler, and have the first PR ready which introduces the YARP compile method. Our only outstanding question before merging it is about naming. How should we expose the public API for YARP's compile method?

Potential suggestions:

  1. YARP.compile
  2. RubyVM::InstructionSequence.compile(yarp: true)
  3. RubyVM::InstructionSequence.compile_yarp
  4. Any of the above options, with a name other than yarp (please suggest an alternative)

Regarding option 1, which would mirror YARP.parse, is the top level constant YARP acceptable?

cc @matz (Yukihiro Matsumoto) @ko1 (Koichi Sasada)

Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like3Like0Like0Like0Like1Like0Like0Like0Like0Like0Like0Like0Like1Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like0Like1Like0