Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhiMojo presents strings, numbers, and booleans as bytes #3474

Open
yegor256 opened this issue Nov 8, 2024 · 0 comments
Open

PhiMojo presents strings, numbers, and booleans as bytes #3474

yegor256 opened this issue Nov 8, 2024 · 0 comments

Comments

@yegor256
Copy link
Member

yegor256 commented Nov 8, 2024

Currenlty, PhiMojo converts this XMIR:

<o base="org.eolang.string" line="11" name="foo">
  <o base="bytes" data="bytes">48 65 6C 6C 6F</o>
</o>

to this .phi:

foo ↦ Φ.org.eolang.string (α0 ↦ Φ.org.eolang.bytes (Δ ⤍ 48-65-6C-6C-6F))

This makes phi-text less readable than it could be. I suggest converting such XML blocks to:

foo ↦ "Hello"

UnphiMojo should be able to understand it.

The same should be done for NUMBER and BOOLEAN.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant