Git Product home page Git Product logo

Comments (3)

samcv avatar samcv commented on August 16, 2024

Nobody has commented yet, can anybody weigh in? @perl6/perl6

If no objections I would like to update the spec and add some tests into roast for this.

from old-design-docs.

AlexDaniel avatar AlexDaniel commented on August 16, 2024

To be honest, I'm not sure I understand what is going to happen after this change.

I think the only useful one of these we might want to keep would be the uniprop-bool function, which could be used to check the absence of a property.

Can't we have something that is more consistent with the rest of the language? For example, uniprop can return an undefined value in case of the absence of a property. Or we can add :exists or something like this.

from old-design-docs.

samcv avatar samcv commented on August 16, 2024

Well, just :exists is pretty vague when you want to return whether or not the property is True or False. Could be other wording, but there should be an easy way to check if
'a'.uniprop('Numerical_Type') #> None
'a'.uniprop-bool('Numerical_Type') #> False

All the different enumerated properties have mostly different values for codes without the property OR which have been explicitly specified as having that value.

:exists, well that codepoint does have said property, and returning undefined for standard uniprop would not be correct.

from old-design-docs.

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.