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

\Delta may not be attached to \varempty #625

Open
yegor256 opened this issue Dec 12, 2024 · 5 comments
Open

\Delta may not be attached to \varempty #625

yegor256 opened this issue Dec 12, 2024 · 5 comments

Comments

@yegor256
Copy link
Member

This is not a valid phi expression:

x ↦ ⟦ Δ ⤍ ∅ ⟧

\Delta may not be attached to anything except bytes. Here is out latest grammar:

Screenshot 2024-12-12 at 10 36 46
@yegor256
Copy link
Member Author

@deemp please, check this one

@fizruk
Copy link
Collaborator

fizruk commented Dec 12, 2024

I believe we had a discussion about this. bytes needs this. Otherwise, please explain how bytes is supposed to be properly dataized without being treated as a special object.

@yegor256
Copy link
Member Author

yegor256 commented Dec 12, 2024

@fizruk this is how we do it:

Φ̇.bytes(⟦ Δ ⤍ 01- ⟧)

Here is how bytes are defined:

{⟦
  org ↦ ⟦
    eolang ↦ ⟦
      bytes ↦ ⟦
        data ↦ ∅,
        ...
      ⟧
    ⟧
  ⟧
⟧}

@fizruk
Copy link
Collaborator

fizruk commented Dec 12, 2024

Ok, this is new notation and requires supporting #604 first. Can you please specify which EO version introduced this change?

@yegor256
Copy link
Member Author

@fizruk not necessarily, you can just support this for now:

Φ̇.bytes(α0 ↦ ⟦ Δ ⤍ 01- ⟧) 

We started to use bytes like this in version 0.43.0: objectionary/eo#3523

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

2 participants