Giter VIP home page Giter VIP logo

Comments (6)

fruitl00p avatar fruitl00p commented on September 17, 2024

I feel that changing the return type would be worse than an empty string...

from php-mt940.

SamMousa avatar SamMousa commented on September 17, 2024

The point is that null in indicates a missing value while an empty string
is a valid name.

On Thu, Dec 24, 2015, 19:11 Robin Speekenbrink [email protected]
wrote:

I feel that changing the return type would be worse than an empty
string...


Reply to this email directly or view it on GitHub
#26 (comment).

from php-mt940.

fruitl00p avatar fruitl00p commented on September 17, 2024

I know blank is an invalid name, and as a setter it would be invalid, but the official mt940 docs (AFAIK) dont mention that a name has a minimum of characters, thus not switching return type has my preference... One might argue about throwing an exception, but thats a different story ;)

from php-mt940.

SamMousa avatar SamMousa commented on September 17, 2024

If mt940 doc don't have a minimum length then blank is valid.. That is why
we need null. Note that null is not a different type; it is not a type at
all

On Sun, Dec 27, 2015, 19:39 Robin Speekenbrink [email protected]
wrote:

I know blank is an invalid name, and as a setter it would be invalid, but
the official mt940 docs (AFAIK) dont mention that a name has a minimum of
characters, thus not switching return type has my preference... One might
argue about throwing an exception, but thats a different story ;)


Reply to this email directly or view it on GitHub
#26 (comment).

from php-mt940.

fruitl00p avatar fruitl00p commented on September 17, 2024

null is a special type indeed, thats true... Anyone else have an idea of switching return types ?

from php-mt940.

fruitl00p avatar fruitl00p commented on September 17, 2024

I still stand by my original point of view that returning NULL in this situation is weird? The return type is a string (it might be empty) but it is / should always be a string...

from php-mt940.

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.