« first day (847 days earlier)      last day (4099 days later) » 

user142019
12:00 AM
> unexpected <insert token here>
 
user142019
I can also customize the diagnostics very easily, of course.
 
@NikiC I was loosely alluding to a promiscuous syntax there :0
 
@sehe You and your promiscuous
 
@Zoidberg You to be identifying with Parsec a bit there
 
user142019
I did that with identifier, for example.
 
12:01 AM
@NikiC Did I say it before? Must be something I think of with PHP then :( sorry
 
user142019
identifier :: Parser Identifier
identifier = do
    hadAtSign <- isJust <$> (optionMaybe $ char '@')
    when (not hadAtSign) (notFollowedBy keyword <?> "identifier")
    c <- identifierStart
    cs <- many identifierPart
    return $ Identifier (c : cs)
 
user142019
The <?> indicates custom error message for "expected"; in this case "expected identifier".
 
@sehe No you didn't say it before. But you did use that fancy talk before. I can't even type that word
 
liar
 
user142019
I like Python's parse error diagnostics.
 
12:02 AM
@sehe type without looking at it another five times while doing so ;)
 
user142019
SyntaxError: invalid syntax
 
@Zoidberg Is that ... all?
 
user142019
@NikiC And a caret pointing to the culprit token.
 
not a caret, it just highlights it in red
 
user142019
Not on my machine.
 
12:03 AM
@Zoidberg Precisely. I don't like "parse error" reporting, principially. I like to think of it as reporting an error in the input, not the parsing process.
 
Python has syntax simple enough for this to be obvious
 
@Zoidberg that sounds quite nice
 
user142019
@sehe It's an exception. :v
 
on my 3.2 it highlights it in red shrug
 
It just needs to point where
 
12:04 AM
@CatPlusPlus and perl? :)
 
@Zoidberg Implementation detail. Doesn't matter
 
user142019
I wonder how customizable Parsec diagnostics are.
 
And Perl is shit
 
@user1690130 No need to address that
4 mins ago, by Zoidberg
I can also customize the diagnostics very easily, of course.
 
user142019
Oh awesome.
 
user142019
12:04 AM
Lots of functions to query ParseErrors.
 
catplus: yes it is, but how else shall one scrape? :)
 
user142019
I'll just do Python/clang-like caret thingy.
 
user142019
Most obvious and clear.
 
Jan 25 at 10:51, by R. Martinho Fernandes
I don't think that adds any value to the error messages. Quite the opposite.
And many of us agreed (needless to say...)
 
@ThePhD scons?
 
user142019
12:06 AM
I don't.
 
user142019
I find them very nice.
 
@melak47 Working on it....
I meant SSH
 
user142019
In my early daklang implementation I did tildes + caret like clang. :P
 
.. SOrt of, except it's nto working, but I'll figure tha tout too
 
user142019
xD
 
12:07 AM
@ThePhD You need to shuffle your keyboard
2
 
@sehe mpmdrmdr!
 
better
 
user142019
As for parsing I'll start with using namespace directives as they are teh eazy.
 
@sehe In what way does it make things worse?
 
@NikiC more verbose, less overview (every single detail is buried in a lot of cosmetics. I wan't to be able to query compiler output like a database, not read it like a novel)
 
12:11 AM
crap
this might actually work (might)
 
user142019
Later: the joy and pain of >>.
 
@NikiC But I guess it applies to C++ in particular, what with nested template instantiations and stuff like that
 
@sehe Hm, maybe you're right
 
@Zoidberg Ah, I don't actually think that's tough in C#.
 
user142019
Well, generic params can only be types. :P
 
12:12 AM
it's not like C++ where you have to think about std::array<std::array<int, 1 >> 5>> arr;.
 
user142019
lol
 
that's evil.
 
@Zoidberg yup
 
user142019
@sehe I WANT LANGUAGE EXTENSION FOR IT.
 
@Zoidberg Me too.
 
12:14 AM
man, I wish I hadn't killed Intellisense.
 
@DeadMG resurrect it
 
user142019
Haha C# language extension. #pragma language template-metaprogramming
 
"Error C1234: Braaaains expected!"
 
trying
 
@DeadMG why? VS too fast?
 
user142019
12:15 AM
I also want to support RAII.
 
Good luck
 
user142019
{
    File! f("foo.txt");
    throw new Exception("f.Dispose() called");
}
 
user142019
Because using is so fverbose. :P
 
@sehe Nah, I just like the instant-feedback squigglies.
 
user142019
And automatic Dispose method generation for !-ed members.
 
12:18 AM
and I wish the CTP wasn't so buggy
gotta return make_unique to it's previous implementation methinks
 
Ah
Visual GCC has a strange behavior.
 
you're a strange behaviour
 
It waits until it the entire program si done outputting before translating and piping output to the command line.
So in VS it looks like nothing's happening until suddenly, ERROR/WARNING MESSAGE FLOOD.
@DeadMG I'll be any kind of behaviour you want me to be!
 
o_o
 
:D
 
12:22 AM
fuck!
those noobs didn't put the proper title on the new Community
 
me?~
Aww...
And here I was excited.
 
how am I supposed to get back into the Community vibe, if they don't put on the proper music?
 
indeed
hmmm, fuck.
std.cout is an expression, but std is not, even though it's parsed that way.
ah well
 
user142019
Hurray my using directive parser works!
 
user142019
12:36 AM
Almost. :P
 
@Zoidberg does it handle using X = ns.ns.ns.Y; already?
 
user142019
It does using System.Collections.Generic; and similar.
 
Also, does it support namespace-local using yet? With proper namespace lookup?
@Zoidberg Lol. Similar
 
user142019
Can you do this in C#?
 
What?
 
user142019
12:38 AM
using Foo.Bar<Baz>; and what does this mean?
 
user142019
The spec mentions the syntax.
 
@Zoidberg Nope. Syntax error
using Alias = Foo.Bar<Baz>; would be ok
 
user142019
Ohh okay then this part is done. :P
 
user142019
using System.Collections.Generic.List; does that work?
 
user142019
List ain't a namespace.
 
12:40 AM
And keep in mind:
#if false
using X = System.Void;
#else
using X = System.Nullable<System.Int32>;
#endif
@Zoidberg nope
 
user142019
Oh must refer to a namespace name.
 
user142019
@sehe what about it?
 
@Zoidberg Don't forget conditional compilation in your parser design
 
user142019
Oh yeah. :P
 
user142019
Can a fully qualified name contain type parameters?
 
12:43 AM
No, that would be a type, IYAM.
A name is a name, I expect?
 
user142019
Ah thanks. :P
 
user142019
Oh yeah of course. xD
 
                // If result is a function, namespace, or variable decl, we're good. Else, cry like a little girl. A LITTLE GIRL.
I should comment less at this time of night
 
Lol.
 
@DeadMG // a little girl wielding a bazooka
May 29 '12 at 23:26, by sehe
I'm just hinting that sloppy style leads to UB when in the land of bazooka wielding cute little girls (poetic license)
or
 
12:46 AM
'No suitable response from remote hg' when trying to use SSH...
 
Jan 1 '12 at 14:57, by jalf
room topic changed to Lounge<C++>: C++: not like wielding a cute little girl [c++] [c++11] [c++-faq]
 
I must've done something horribly wrong.
 
@ThePhD Sounds like no connection at all
 
Yeah I must be punching in the URL wrong or something
 
Ell
Is it possible to get rid of the parser step by coding in a format a code generator can understand?
 
12:47 AM
@ThePhD more like the protocol, or a proxy server messing up
@Ell Yes. Write bytecode
@Ell Allthough, philosophically, that could still be construed as parsing bytecode.
 
Disconnected: No supported authentication methods available (server sent: public key)
So I guess PLink isn't kicking in properly?
 
Hell, even mainframes 'parsed' punch cards, in a way
@ThePhD Or the server doesn't like your key.
Try ssh -vvv user@remote
 
@ThePhD oh wait, on UNIX, SSH will refuse to work if your private key is world readable
 
That's the ugliest code I've ever seen. o_O;
What is the language?
 
user142019
12:50 AM
Haskell. :<
 
user142019
It's not ugly!
 
user142019
You are ugly!
 
I'm underwhelmed as well
 
@sehe I don't know what that means...
But I'll make sure my public key is a-okay.
 
user142019
Why. It's not that ugly.
 
12:51 AM
@Zoidberg -- hugs --
 
user142019
Except for wsOrLt. :P
 
Ell
I wonder how much key cutting is
 
user142019
What does "Bückstabü" mean, by the way?
 
not much
five quid it was when I had a key cut last, or something similar.
 
Haskell FTW!
 
user142019
12:52 AM
Oh it's a made-up word.
 
but that was several years ago
even so, I'd expect no more than ten or fifteen quid
 
@Ell depends on the lock
 
Ell
Ahh cool.
the lock to my schools product design store xD
 
Okay, I got a valid public key in there.
pageant has my private key loaded
So why won't this damn thing flip on...
 
You need a private key to initiate the connection
 
12:55 AM
It should be in pageant, right?
That's where it needs to be, right?
 
@ThePhD Testing it on the CLI?
@ThePhD Yup.
 
                // If we are of the form cpp(string), then perform Super Special Lols.
 
Why not just Special Lols?
 
Um...
ssh is not a special command.... I'd have to use TortoinsePLink.exe as my ssh, right?
 
@ThePhD yup, likely
 
12:57 AM
Well
I'm doing TortoisePLink.exe -vvv MyUserName@bitbucket.org and it's just.... kinda laughing at me.
As in, nothing's printing. o_O
 
why do you need to ssh into your bitbucket?
 
user142019
class A<T> { public class B { } }
using C = A<int>.B; // allowed, right? :L
 
So my private/public keys can work?
 
you can store them via the website :p
 
@Zoidberg yes
 
12:59 AM
I have them stored on the website.
 
user142019
Great.
 
But I still need to ssh in, don't I?
 
Ell
For signing commigs?
 
no
 
Oh, well okay then...
 
12:59 AM
you just hg clone, or rather, scons does it. ?
 
@Zoidberg really? wouldn't it be ::B ?
 
Scumbag tutorial, lying to me: confluence.atlassian.com/display/BITBUCKET/…
 

« first day (847 days earlier)      last day (4099 days later) »