« Back to channel list

#ruby - 18 October 2017

« Back 1 day
[00:00:10] Cohedrin_: has joined #ruby
[00:01:01] jrabe: has joined #ruby
[00:02:38] ramfjord: has joined #ruby
[00:03:43] Technodrome: has joined #ruby
[00:04:52] QualityAddict: has joined #ruby
[00:05:56] pilne: has joined #ruby
[00:08:40] ramfjord: has joined #ruby
[00:10:01] jenrzzz: has joined #ruby
[00:10:02] jenrzzz: has joined #ruby
[00:12:21] nickjj: has joined #ruby
[00:17:29] fizzycola: baweaver: because Module#===
[00:17:37] fizzycola: same as kind_of?
[00:17:52] fizzycola: and important, because BasicObject#kind_of? doesn't exist.
[00:19:28] fizzycola: so if you want to know if.. foo is_a? BasicObject, then BasicObject === foo.
[00:22:21] fizzycola: i prefer Module#=== over is_a? for this reason.
[00:23:11] AndBobsYourUncle: has joined #ruby
[00:27:16] ramfjord: has joined #ruby
[00:27:34] workmad3: has joined #ruby
[00:31:29] nickjj: has joined #ruby
[00:31:50] QualityAddict: has joined #ruby
[00:32:36] havenwood: >> ObjectSpace.each_object.all? { |obj| BasicObject === obj }
[00:32:37] havenwood: fizzycola: What's not a BasicObject?
[00:32:37] ruby[bot]: havenwood: # => true (https://eval.in/881842)
[00:35:52] fizzycola: havenwood: in sense if you have: a = BasicObject.new; a.is_a?(BasicObject)
[00:36:06] havenwood: #instance_of?
[00:36:20] fizzycola: doesn't cut it
[00:36:32] fizzycola: class Foo < BasicObject; end
[00:36:38] havenwood: right, just pseudocode nit
[00:37:07] havenwood: But... why? Show me something that isn't.
[00:37:19] havenwood: I get it doesn't play nice, but why?
[00:37:21] fizzycola: problem in repl's.
[00:37:30] fizzycola: you cannot rely on 'a' having is_a?
[00:38:47] pwnd_nsfw: has joined #ruby
[00:40:19] havenwood: fizzycola: I guess BasicObject is just too primitive for the REPL use in question.
[00:40:37] havenwood: It's not an object-proper. It's too basic.
[00:42:42] havenwood: fizzycola: BasicObject is really, really basic.
[00:42:55] fizzycola: yeah. "sure" wasn't meant to be snarky btw. it was "sure valid". but sometimes you need to say "give me anything, and tell me if it is a anything".
[00:43:28] havenwood: fizzycola: Yeah, totally fair. BasicObject was added later as a primordial primitive.
[00:44:37] gizmore|2: has joined #ruby
[00:48:15] alnewkirk: has joined #ruby
[00:48:26] apparition: has joined #ruby
[00:49:12] pwnd_nsfw: has joined #ruby
[00:50:05] loxxibot: has joined #ruby
[00:50:17] dinfuehr: has joined #ruby
[00:51:29] jphase: has joined #ruby
[00:54:04] enterprisey: has joined #ruby
[00:54:53] pwnd_nsfw: has joined #ruby
[00:55:39] imode: has joined #ruby
[01:07:10] ramfjord: has joined #ruby
[01:09:14] jgt: has joined #ruby
[01:11:15] orbyt_: has joined #ruby
[01:13:03] ramfjord: has joined #ruby
[01:14:12] Jameser: has joined #ruby
[01:17:56] CrazyEddy: has joined #ruby
[01:24:44] __Yiota: has joined #ruby
[01:25:59] enterprisey: has joined #ruby
[01:26:05] alnewkirk: has joined #ruby
[01:27:36] cschneid_: has joined #ruby
[01:29:32] dkam: has joined #ruby
[01:33:55] dkam_: has joined #ruby
[01:34:26] Freshnuts: has joined #ruby
[01:34:54] mim1k: has joined #ruby
[01:35:44] d^sh: has joined #ruby
[01:42:12] __Yiota: has joined #ruby
[01:43:08] duderonomy: has joined #ruby
[01:43:57] dkam__: has joined #ruby
[01:46:03] mson: has joined #ruby
[01:50:52] duper: has joined #ruby
[01:52:57] alnewkirk: has joined #ruby
[01:55:09] Cohedrin_: has joined #ruby
[01:57:36] gizmore: has joined #ruby
[01:57:59] alnewkirk: has joined #ruby
[01:58:13] badrsahla: has joined #ruby
[01:59:35] elcontrastador: has joined #ruby
[02:06:25] tenakoe: has joined #ruby
[02:07:04] Technodrome: has joined #ruby
[02:08:18] cschneid_: has joined #ruby
[02:13:35] alnewkirk: has joined #ruby
[02:17:01] Ropeney: has joined #ruby
[02:19:06] badrsahla: has joined #ruby
[02:19:47] enterprisey: has joined #ruby
[02:20:31] fullstack: has joined #ruby
[02:21:06] CrazyEddy: has joined #ruby
[02:28:16] zapata: has joined #ruby
[02:28:17] workmad3: has joined #ruby
[02:30:23] jrafanie: has joined #ruby
[02:33:00] swirlsMD: has joined #ruby
[02:36:00] jenrzzz: has joined #ruby
[02:36:00] jenrzzz: has joined #ruby
[02:36:02] ap4y: has joined #ruby
[02:36:24] knight33: has joined #ruby
[02:40:16] cschneid_: has joined #ruby
[02:44:49] jenrzzz_: has joined #ruby
[02:53:06] uZiel: has joined #ruby
[02:54:38] orbyt_: has joined #ruby
[02:54:43] badrsahla: has joined #ruby
[02:55:14] swirlsMD: has joined #ruby
[02:56:58] whippythellama: has joined #ruby
[02:57:18] jgt: has joined #ruby
[03:01:28] ledestin: has joined #ruby
[03:02:42] stilbruch: has joined #ruby
[03:07:34] lektrik: has joined #ruby
[03:10:33] rhyselsmore: has joined #ruby
[03:11:54] alnewkirk: has joined #ruby
[03:20:40] ek926m: has joined #ruby
[03:28:52] alfiemax: has joined #ruby
[03:30:31] dc3: has joined #ruby
[03:31:33] ablackack: has joined #ruby
[03:31:51] RushPL: has joined #ruby
[03:32:22] contradictioned: has joined #ruby
[03:33:36] gix: has joined #ruby