« first day (1500 days earlier)      last day (1988 days later) » 

6:44 AM
@ljedrz Ahah! Not sure if it can be X posted in /r/rust
 
7:23 AM
I have a question about proc macros, but I'm not sure that it is suitable for a SO question: do you think that there is a simple way (a crate, for example) to have the expression calling a particular method (let's say hello). For example: foo.field.bar().hello() => foo.field.bar().
It seems to be tricky because the calling expression can be basically anything
 
7:49 AM
There is the syn crate, but it does not handle the functions: docs.rs/syn/0.15/syn/enum.Data.html
 
8:08 AM
Oh there is an example for the custom attributes: github.com/dtolnay/syn/blob/master/examples/trace-var/trace-var/…
I'll see if it covers my need
 
 
1 hour later…
9:15 AM
@Boiethios There's /r/rustjerk for that.
 
 
8 hours later…
4:53 PM
Just published byteordered. Go wild. :>
 
 
3 hours later…
7:23 PM
Well, now I wonder if any of our currently supported platforms have a bool which is not internally represented as either 1 or 0.
 
@набиячлэвэли Our thingy is safe from these deviations now. :)
 
quite
@E_net4iskindandwelcoming but it it also safe to release?
@E_net4iskindandwelcoming wasn't the canonical way to shorten "If And Only If" iff as opposed to iif?
 
@набиячлэвэли Aye
@набиячлэвэли Probably. I have a record of mixing that up. :x
I need a better mnemonic or something.
 
In computing, IIf (an abbreviation for Immediate if) is a function in several editions of the Visual Basic programming language and ColdFusion Markup Language (CFML), and on spreadsheets that returns the second or third parameter based on the evaluation of the first parameter. It is an example of a conditional expression, which is similar to a conditional statement. == Syntax == The syntax of the IIf function is as follows: IIf(expr, truepart, falsepart) All three parameters are required: expr is the expression that is to be evaluated. truepart defines what the IIf function returns if...
AAAaaAaaaAaAAa
 
> This crate can be used in a no-std environment by disabling the std feature.
is that good enough or am I missing some key part? (it'd be enough for me, but who knows what the consensus is)
 
@набиячлэвэли Cargo features are additive, so in practice one has to disable default features: --no-default-features It might be a tiny bit more useful than suggesting to remove std.
 
@E_net4iskindandwelcoming --no-default-features is kinda useless on a lib crate innit xD
> This crate can be used in a no-std environment by disabling the std feature through specifying no-default-features on import.
 
@набиячлэвэли Right. One would rather default-features = false.
 
that's it
I always forget
> This crate can be used in a no-std environment by disabling the std feature through specifying default-features = false on import.
 
7:38 PM
There's also this third-party cargo subcommand cargo-nono for checking whether a crate has no_std support.
 
Although don't seem to be able to make it work on this side.
 
nor me
refuses to start :+1:
 
Lemme try another toolchain or somethin'
Nightly is same carp
It happens specifically on our crate.
Hmm. OK, never mind. This might actually be the expected behaviour in crates with full no_std support.
It does the same thing in byteorder.
 
7:55 PM
good to go then :Р
 
okay how sad is it that I actually explicitly looked if I've done this release joke before xD
anyway, it's up
 
8:12 PM
> Could it be? Has she achieved absolute pedantry?
Ankoraŭ ne
 

« first day (1500 days earlier)      last day (1988 days later) »