Code Monkey home page Code Monkey logo

Comments (3)

maowtm avatar maowtm commented on May 8, 2024 1

Just my personal opinion... but I actually prefer no parenthesis if we have to enforce either one or the other, since being able to just write thing :- other_thing is quite satisfying 😄

from modus.

maowtm avatar maowtm commented on May 8, 2024

A related thought: maybe we can solve the user error problem by making sure that we have clear error messages. When I tried a :- b() or a :- b::c() by mistake (not knowing this was not allowed) the error message did not provide any useful information. Maybe we should have a special case for this - check if there is () following a predicate, and specifically say something like "parenthesis should be omitted for nullary predicates"...?

from modus.

thevirtuoso1973 avatar thevirtuoso1973 commented on May 8, 2024

I am in favour of enforcing parentheses for nullary predicates. Although I don't mind the other options.

I think the relational algebra operators would all work the same way, just that we'd be working on {()} or {}. So to be consistent, enforce p().

Regardless, it would improve readability if we just stuck to one (instead of making it optional).

from modus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.