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

sugar for data primitives is not always used when printing #616

Open
yegor256 opened this issue Dec 5, 2024 · 1 comment
Open

sugar for data primitives is not always used when printing #616

yegor256 opened this issue Dec 5, 2024 · 1 comment

Comments

@yegor256
Copy link
Member

yegor256 commented Dec 5, 2024

I'm doing this:

$ cat bar.phi
{⟦ m ↦ ⟦ x ↦ ⟦ t ↦ 42 ⟧.t ⟧.x ⟧}
/code/tmp/eo$ eo-phi-normalizer rewrite bar.phi
Rule set following Nov 2024 revision
Input:
{
  ⟦
    m ↦ ⟦
      x ↦ ⟦
        t ↦ 42
      ⟧
      .t
    ⟧
    .x
  ⟧
}
====================================================
Result 1 out of 1:
{
  ⟦
    m ↦ Φ.org.eolang.int (
      as-bytes ↦ Φ.org.eolang.bytes (
        Δ ⤍ 00-00-00-00-00-00-00-2A
      )
    )
    (
      ρ ↦ ⟦
        t ↦ 42
      ⟧
    )
    (
      ρ ↦ ⟦
        x ↦ Φ.org.eolang.int (
          as-bytes ↦ Φ.org.eolang.bytes (
            Δ ⤍ 00-00-00-00-00-00-00-2A
          )
        )
        (
          ρ ↦ ⟦
            t ↦ 42
          ⟧
        )
      ⟧
    )
  ⟧
}
----------------------------------------------------

Why in one place it's Φ.org.eolang.int (...), while in another place it's just 42? Would be better to have it consistent: always use sugar (42).

@yegor256
Copy link
Member Author

yegor256 commented Dec 5, 2024

@deemp please, check

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

No branches or pull requests

1 participant