Re: [rust-dev] Virtual fn is a bad idea

2014-03-12 Thread Maciej Piechotka
, but sometimes the simplest solution is to build stuff into the language. On March 11, 2014 7:39:30 PM PDT, Maciej Piechotka uzytkown...@gmail.com wrote: On Tue, 2014-03-11 at 14:18 -0700, Patrick Walton wrote: On 3/11/14 2:15 PM, Maciej Piechotka wrote

Re: [rust-dev] Virtual fn is a bad idea

2014-03-11 Thread Maciej Piechotka
On Tue, 2014-03-11 at 19:09 +, Bill Myers wrote: I see a proposal to add virtual struct and virtual fn in the workweek meeting notes, which appears to add an exact copy of Java's OO system to Rust. I think however that this should be carefully considered, and preferably not added at

Re: [rust-dev] Virtual fn is a bad idea

2014-03-11 Thread Maciej Piechotka
: - Nothing. Everything works out of the box And before you ask - component A and B were 2 different libraries for which the Oracle interfaces were insufficient. Best regards On Tue, Mar 11, 2014 at 2:35 PM, Maciej Piechotka uzytkown...@gmail.com wrote: On Tue, 2014-03-11 at 19:09 +

Re: [rust-dev] Virtual fn is a bad idea

2014-03-11 Thread Maciej Piechotka
mean, anything else is really just a function, instead of 60.days_after(date) use days_after(60, date). On Tue, Mar 11, 2014 at 2:51 PM, Maciej Piechotka uzytkown...@gmail.com wrote: On Tue, 2014-03-11 at 14:37 -0500, Evan G wrote: ... Why didn't they just extend Number

Re: [rust-dev] Virtual fn is a bad idea

2014-03-11 Thread Maciej Piechotka
On Tue, 2014-03-11 at 13:44 -0700, Patrick Walton wrote: On 3/11/14 1:42 PM, Daniel Micay wrote: Existing object systems like COM, DOM and gobject are worth looking at, but Rust shouldn't bend over backwards to support them. They're legacy technologies and while interacting with them is

Re: [rust-dev] Virtual fn is a bad idea

2014-03-11 Thread Maciej Piechotka
On Tue, 2014-03-11 at 14:18 -0700, Patrick Walton wrote: On 3/11/14 2:15 PM, Maciej Piechotka wrote: Could you elaborate on DOM? I saw it referred a few times but I haven't seen any details. I wrote simple bindings to libxml2 dom (https://github.com/uzytkownik/xml-rs - warning - I wrote

Re: [rust-dev] About RFC: A 30 minute introduction to Rust

2014-03-05 Thread Maciej Piechotka
On Tue, 2014-03-04 at 23:54 -0300, Fernando Pelliccioni wrote: We still have the problem of dangling references. Any decent compiler can deal with this problem, and according to the Standard the implementations are encouraged to issue a warning in such a case. I don't know