Re: [Pharo-dev] #fromFileNamed: seems too UNIX-y

2015-02-21 Thread Sven Van Caekenberghe

> On 21 Feb 2015, at 04:02, Sean P. DeNigris  wrote:
> 
> Sven Van Caekenberghe-2 wrote
>> But convenience and clean separation of responsibilities sometimes
>> conflict (I mean, do all these object even have to know about files ?)
> 
> Good point! But what do we do? The logic is too complicated for users to
> roll-their-own... It would be nice to have a collaborating role like
> dataSource, but the problem is that there are no specific FileReference
> sub-types and we don't want to cloud up FileReference on the other side...

For me, this is an open design question.

Someone should think hard about this and propose something.

Existing conversions like #asXYZ or #as: come in the picture as well.

Sven 



Re: [Pharo-dev] #fromFileNamed: seems too UNIX-y

2015-02-20 Thread Sean P. DeNigris
Sven Van Caekenberghe-2 wrote
> But convenience and clean separation of responsibilities sometimes
> conflict (I mean, do all these object even have to know about files ?)

Good point! But what do we do? The logic is too complicated for users to
roll-their-own... It would be nice to have a collaborating role like
dataSource, but the problem is that there are no specific FileReference
sub-types and we don't want to cloud up FileReference on the other side...



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/fromFileNamed-seems-too-UNIX-y-tp4806748p4806763.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.



Re: [Pharo-dev] #fromFileNamed: seems too UNIX-y

2015-02-20 Thread Sven Van Caekenberghe
Yes.

But convenience and clean separation of responsibilities sometimes conflict (I 
mean, do all these object even have to know about files ?)

> On 20 Feb 2015, at 23:42, Sean P. DeNigris  wrote:
> 
> Now that we have a beautiful File API, would it make sense to use real file
> objects everywhere instead of string passing?
> 
> 
> 
> -
> Cheers,
> Sean
> --
> View this message in context: 
> http://forum.world.st/fromFileNamed-seems-too-UNIX-y-tp4806748.html
> Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.
> 




[Pharo-dev] #fromFileNamed: seems too UNIX-y

2015-02-20 Thread Sean P. DeNigris
Now that we have a beautiful File API, would it make sense to use real file
objects everywhere instead of string passing?



-
Cheers,
Sean
--
View this message in context: 
http://forum.world.st/fromFileNamed-seems-too-UNIX-y-tp4806748.html
Sent from the Pharo Smalltalk Developers mailing list archive at Nabble.com.