0:20 AM
sleffy has quit
0:23 AM
PeterRabbit has quit
0:23 AM
WindowsBunny has quit
0:24 AM
PeterRabbit joined the channel
0:24 AM
WindowsBunny joined the channel
0:57 AM
oln has quit
1:07 AM
nagisa has quit
1:34 AM
sleffy joined the channel
1:36 AM
AstralSorcerer joined the channel
1:47 AM
behnam joined the channel
1:49 AM
behnam has quit
1:58 AM
Noldorin has quit
1:58 AM
Noldorin joined the channel
2:29 AM
badmann joined the channel
4:26 AM
Noldorin has quit
4:27 AM
Noldorin joined the channel
4:28 AM
Noldorin has quit
4:49 AM
eddyb
4:49 AM
woboats: have you seen eternaleye rant about why he prefers records + implicits to typeclasses?
4:51 AM
(in that model you wouldn't need to extend it to get "meta traits", since traits => struct type, impls => const values of the trait type, bounds => const generic implicits of those trait types)
4:52 AM
Diggsey has quit
5:32 AM
Aaronepowerr joined the channel
5:33 AM
Aaronepowerr has quit
5:34 AM
Aaronepower has quit
5:34 AM
Aaronepower joined the channel
5:59 AM
eternaleye
eddyb: Not quite; bounds => const parameters of those trait types, _inference_ of bounds => marking those parameters as implicits
6:00 AM
eddyb
eternaleye: sorry, yeah, I was conflating the two
6:00 AM
(as Rust does today)
6:01 AM
eternaleye
Yeah, but deconflating them is a big part of the point :P
6:01 AM
For example, having a function that works on a field be able to take an abelian group and a commutative monoid :P
6:01 AM
(Which are... Add/Zero and Mul/One :P)
6:14 AM
eddyb
eternaleye: or rather, I was describing how current Rust conflates the two - if you had const generics *and* implicits you could use them separately
6:16 AM
badmann has quit
6:17 AM
eternaleye
eddyb: One thing is that it _does_ require rank-2 types, or else you miss out on associated types
6:17 AM
eddyb
oh right
6:18 AM
eternaleye: suddenly this seems harder than a generalization of traits to change the kind of Self
6:19 AM
eternaleye
eddyb: I mean, traits are already doing this
6:19 AM
The main thing is that this exposes the tools traits use, rather than exposing traits
6:21 AM
Implicits expose "type-directed value selection", rank-2 types expose associated types, etc
6:22 AM
I do feel this overall reduces the amount of magic in the system, in part because it breaks it up into small, orthogonal components
8:14 AM
centril
!rfc 2357
8:14 AM
rustbot
8:14 AM
centril
^-- My newest RFC =P
8:25 AM
isHavvy
centril: Commented on it.
8:29 AM
centril
isHavvy: #[non_exhaustive] acts as a form of privacy wrt. in-crate/outside of crate, yes?
8:30 AM
isHavvy
Yes.
8:31 AM
centril
aight
8:32 AM
isHavvy: but not in-crate privacy as in pub(super) etc. ?
8:32 AM
isHavvy
Right.
8:33 AM
Though theoretically #[non_exhaustive] could be extended to give finer control over in-crate privacy.
8:36 AM
sleffy has quit
8:58 AM
centril
isHavvy: heh.. what is wrong with pub/pub(crate/pub(super)
8:58 AM
that just sounds like inventing new syntax for visibility... =P
8:59 AM
scottmcm
well, `#[non_exhaustive(crate)]` would be obvious
9:00 AM
but one could also mention inventing new syntax for specifying PhantomData =P
9:00 AM
centril
scottmcm: not obvious to me 0P
9:00 AM
=P
9:01 AM
scottmcm
Also, I wouldn't be surprised if the syntax for non_exhaustive changed from a macro to `...` in the type, or something
9:01 AM
but as usual, macro first, then syntax later if really needed
9:01 AM
s/macro/attribute/
9:02 AM
unimportant question: what's the emoji after the ghost? just looks like a torso+head to me...
9:02 AM
(aka reason 487 to not try to communicate precisely by using emoji...)
9:14 AM
centril
scottmcm: bust
9:14 AM
ghost + bust
9:15 AM
scottmcm
see C-worm :P
9:17 AM
10:00 AM
nagisa joined the channel
10:01 AM
badmann joined the channel
10:07 AM
badmann has quit
10:09 AM
niconii has quit
10:40 AM
oln joined the channel
11:06 AM
badmann joined the channel
12:45 PM
Aaronepower has quit
12:49 PM
AstralSorcerer has quit
12:54 PM
lukaramu joined the channel
13:21 PM
chordowl joined the channel
13:24 PM
lukaramu has quit
13:37 PM
Zoxc has quit
13:43 PM
lukaramu joined the channel
13:45 PM
chordowl has quit
14:00 PM
aismallard has quit
14:33 PM
Aaronepower joined the channel
14:54 PM
Noldorin joined the channel
14:58 PM
Noldorin has quit
15:11 PM
Aaronepower has quit
15:13 PM
Aaronepower joined the channel
15:26 PM
hash joined the channel
15:31 PM
oln has quit
17:19 PM
Diggsey joined the channel
18:20 PM
paulgdp joined the channel
18:22 PM
niconii joined the channel
18:45 PM
WindowsBunny1 joined the channel
18:46 PM
WindowsBunny has quit
18:47 PM
PeterRabbit has quit
18:47 PM
WindowsBunny1 is now known as
18:47 PM
PeterRabbit joined the channel
18:58 PM
PeterRabbit has quit
18:58 PM
PeterRabbit joined the channel
19:01 PM
WindowsBunny joined the channel
19:07 PM
Jesin joined the channel
19:13 PM
kaknife joined the channel
19:17 PM
sleffy joined the channel
19:20 PM
paulgdp has quit
19:33 PM
Zoxc joined the channel
19:36 PM
hash has quit
20:08 PM
nox
20:08 PM
scottmcm: ^
20:09 PM
shiro1 joined the channel
20:35 PM
kimundi has quit
20:37 PM
oln joined the channel
20:40 PM
kimundi joined the channel
21:08 PM
Noldorin joined the channel
22:29 PM
scottmcm
nox: ah, that does look more like a bust than what I see
22:31 PM
22:34 PM
sleffy has quit
22:34 PM
nagisa has quit
22:44 PM
aismallard joined the channel
22:48 PM
Tobba has quit
23:11 PM
shiro1 has quit
23:12 PM
shiro1 joined the channel
23:13 PM
shiro1 has quit
23:19 PM
zmt99 has quit
23:20 PM
zmt99 joined the channel
23:29 PM
lukaramu has quit
23:49 PM
cp has quit