Please create an account to participate in the Slashdot moderation system

 



Forgot your password?
typodupeerror
×

Comment Re:Such potential (Score 1) 520

Python folks will mostly gravitate to reactor451's version. Are there other versions? Yes, especially when you add in iterators and generators, but for even those, developers will gravitate to ONE version of it totally dependent on if they use that feature in their coding.

Code correctness that relies on how far one has "gravitated" in their coding style and/or whether people agree on and/or adhere to those styles is the issue. All your brace-delimited examples work the same. White-space delimited variations won't.

Comment Re:Such potential (Score 1) 520

Your examples are not convincing. Clueless posters will always mess things up, including omitting necessary braces. Python makes this neither worse nor better.

Yes, but it's quite possible that the code won't parse correctly w/o the braces (or with extra braces), where improperly indented Python probably will, and just execute incorrectly. I'd rather have a parse/compile error than run-time error or, more likely, improper execution with no error. Sure, examples can be made either way, but missing/extra braces *can* be detected by the parser. Missing/extra white-space, not so much.

Regardless of whether one (dis)likes white-space delimited blocking, it's main driving force is the ego of the language developer who has declared it "more elegant" than braces, even though the syntax offers absolutely no enhanced benefit.

Comment Re:Such potential (Score 2) 520

I like the language. almost all of it. BUT, the lack of curly braces was a huge mistake. indentation is fine. we all agree its needed.

In addition, according to the Language Manual, Nim supports the directive "#! strongSpaces" to allow white space to affect operator precedence. An example from the manual:

#! strongSpaces
if foo+4 * 4 == 8 and b&c | 9 ++
bar:
echo ""
# is parsed as
if ((foo+4)*4 == 8) and (((b&c) | 9) ++ bar): echo ""

So with/without the directive:

  • with: ((foo+4)*4 == 8)
  • w/o: foo+((4 * 4) == 8)

Comment Re:More attention? (Score 1) 520

...has been getting more attention recently...

Well, if it is a new language, by definition any attention it gets, no matter how little, is "more attention".

.

When the comparison is against zero, it does not take too much to have a 100% improvement. :)

...has been getting more attention recently...

Well, if it is a new language, by definition any attention it gets, no matter how little, is "more attention".

In addition, claiming "more attention" by submitting a post containing several links to articles about the subject seems a little astroturfy. While certainly a small circle, neither I nor anyone I know has heard of this language until now, and still probably won't ever care.

In addition, this tidbit, from the Nim homepage, under "Nim is elegant" make's it a no-go for me:

Statements are grouped by indentation but can span multiple lines. Indentation must not contain tabulators so the compiler always sees the code the same way as you do.

As with Python, this is retarded and unnecessary.

Comment Re:why? (Score 1) 677

Only pendants are convinced the issue is black and white.

I am really sorry but I just can't help myself. The mis-spelling of the word pedants is just too humorous to pass up. ;)

Ya, you're not the first to comment on my fat-fingers - though that you (both) felt compelled to do so might say more about you two than me. :-)

Comment Re:Physical encryption. (Score 4, Funny) 809

Ah...so you padded the files and salted the encryption algorithm. Very good!

Now, all you need is a gaggle of quantum monkeys to decrypt it.

When took LISP way back in college, the instructor asked a student what he wanted out of the class. The kid said, "an A". The instructor said, "no problem" and wrote "A" on the blackboard. Then he asked the kid his name and wrote it on the blackboard - "Steve's A". The instructor said, "I imagine you'll want to take that home with you," erased the writing and smacked the eraser down on the kid's notebook. The instructor then remarked, "notice how your grade has been encrypted and stored as a nice little bit pattern for you."

Ah, college...

Comment Physical encryption. (Score 5, Funny) 809

"Suppose you wanted to send me a file with very sensitive information, how would you encrypt it in such a way that I would decrypt it?"

I'd use a cross-cut shredder, then send it to you in a paper bag along with some Scotch tape. (You didn't specify how easy it needs to be to decrypt, especially if I include some random shredded pages in the mix.)

Works for most types of files: Excel, PDF, etc...

Comment Re:This has been going on for a while (Score 1) 232

If this would help officers obtain validity of the license faster, this might be a benefit.

The officer has a computer and data uplink in his vehicle - and a radio. Do you think he's going to trust *your* phone to verify *your* license? No he's still going to run it through his system, and to check for outstanding warrants on you, etc... Having your license on your phone does nothing to speed up the process, just allows the officer to your, freely unlocked, phone.

Comment Enormous failure? (Score 5, Insightful) 232

... it can be argued that our current regimes of physical documents have been an enormous failure.

Unless, by enormous failure, you mean, has been working for hundreds of years, then citation please. No one's stolen my driver's license or any other physical documents - ever - and they're pretty simple to use - no batteries or cell signal required. In addition, I don't have a smartphone.

Comment Sounds about right. (Score 1) 176

In other words, if a South Carolina inmate caused a riot, took three hostages, murdered them, stole their clothes, and then escaped, he could still wind up with fewer Level 1 offenses than an inmate who updated Facebook every day for two weeks.

Okay. How do we get that punishment implemented out in the world?

Slashdot Top Deals

Those who can, do; those who can't, write. Those who can't write work for the Bell Labs Record.

Working...