PC Review


Reply
Thread Tools Rate Thread

Case and the FCL

 
 
George Remen
Guest
Posts: n/a
 
      13th Feb 2005
Hello,

I'd like to know if it's somehow possible to refere to FCL object in the
lower case regardless of the case they exist in (unless there is some sort
of conflict between object names).

For example, instead of "Console.WriteLine..." could I somehow say
"console.writeline...". Right now this generates a "type or namespace name
could not be found...". Is there a way to do this?

As I start learning c# and programming I just find its easier to preface
types with extra letters rather than useing caps.

Thanks,
George


 
Reply With Quote
 
 
 
 
Joakim Karlsson
Guest
Posts: n/a
 
      13th Feb 2005
George,

C# is case sensitive, so no that is not possible. VB.NET is not case
sensitive, so there you can do what you mention in your post.

Regards,
Joakim

George Remen wrote:
> Hello,
>
> I'd like to know if it's somehow possible to refere to FCL object in the
> lower case regardless of the case they exist in (unless there is some sort
> of conflict between object names).
>
> For example, instead of "Console.WriteLine..." could I somehow say
> "console.writeline...". Right now this generates a "type or namespace name
> could not be found...". Is there a way to do this?
>
> As I start learning c# and programming I just find its easier to preface
> types with extra letters rather than useing caps.
>
> Thanks,
> George
>
>

 
Reply With Quote
 
Joerg Jooss
Guest
Posts: n/a
 
      13th Feb 2005
George Remen wrote:

> Hello,
>
> I'd like to know if it's somehow possible to refere to FCL object in
> the lower case regardless of the case they exist in (unless there is
> some sort of conflict between object names).
>
> For example, instead of "Console.WriteLine..." could I somehow say
> "console.writeline...". Right now this generates a "type or namespace
> name could not be found...". Is there a way to do this?


Use VB .NET. C# is case-sensitive.

> As I start learning c# and programming I just find its easier to
> preface types with extra letters rather than useing caps.


Well, if you're learning, why not learn how to do it properly ;->

--
http://www.joergjooss.de
mailto:news-(E-Mail Removed)
 
Reply With Quote
 
George Remen
Guest
Posts: n/a
 
      13th Feb 2005
Joerg,

Let me further clarify - I'm not a touch typist and I find that hitting
shift every few letters is a serious speedbump.

With regard to VB - I'd like to learn a C-class language because of its
vaunted flexibility.

So I wonder is there such a compiler option or some sort of add-on or
modification that may remove certain case sensitivity? I know I'm a novice
but I prefer to add a few extra letters to an object rather than to use
Pascal or camel.

Thanks,
George





"Joerg Jooss" <news-(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> George Remen wrote:
>
>> Hello,
>>
>> I'd like to know if it's somehow possible to refere to FCL object in
>> the lower case regardless of the case they exist in (unless there is
>> some sort of conflict between object names).
>>
>> For example, instead of "Console.WriteLine..." could I somehow say
>> "console.writeline...". Right now this generates a "type or namespace
>> name could not be found...". Is there a way to do this?

>
> Use VB .NET. C# is case-sensitive.
>
>> As I start learning c# and programming I just find its easier to
>> preface types with extra letters rather than useing caps.

>
> Well, if you're learning, why not learn how to do it properly ;->
>
> --
> http://www.joergjooss.de
> mailto:news-(E-Mail Removed)



 
Reply With Quote
 
Jon Skeet [C# MVP]
Guest
Posts: n/a
 
      13th Feb 2005
George Remen <(E-Mail Removed)> wrote:
> Let me further clarify - I'm not a touch typist and I find that hitting
> shift every few letters is a serious speedbump.


I suspect you'll find that changes over time - but only if you take the
hit and make the effort.

> With regard to VB - I'd like to learn a C-class language because of its
> vaunted flexibility.


I don't know of any C-syntax-based languages which are case-
insensitive, I'm afraid. However, VB.NET has pretty much the same
functionality as C#.

> So I wonder is there such a compiler option or some sort of add-on or
> modification that may remove certain case sensitivity? I know I'm a novice
> but I prefer to add a few extra letters to an object rather than to use
> Pascal or camel.


You'll be at odds with the entire rest of the framework if you do.
Every time you use a framework class you *will* have to use capitals at
the relevant points.

--
Jon Skeet - <(E-Mail Removed)>
http://www.pobox.com/~skeet
If replying to the group, please do not mail me too
 
Reply With Quote
 
George Remen
Guest
Posts: n/a
 
      13th Feb 2005
Thanks for the response. Yup it looks like I'm going to have to learn type
like a Camel

Thanks,
George

"Jon Skeet [C# MVP]" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> George Remen <(E-Mail Removed)> wrote:
>> Let me further clarify - I'm not a touch typist and I find that hitting
>> shift every few letters is a serious speedbump.

>
> I suspect you'll find that changes over time - but only if you take the
> hit and make the effort.
>
>> With regard to VB - I'd like to learn a C-class language because of its
>> vaunted flexibility.

>
> I don't know of any C-syntax-based languages which are case-
> insensitive, I'm afraid. However, VB.NET has pretty much the same
> functionality as C#.
>
>> So I wonder is there such a compiler option or some sort of add-on or
>> modification that may remove certain case sensitivity? I know I'm a
>> novice
>> but I prefer to add a few extra letters to an object rather than to use
>> Pascal or camel.

>
> You'll be at odds with the entire rest of the framework if you do.
> Every time you use a framework class you *will* have to use capitals at
> the relevant points.
>
> --
> Jon Skeet - <(E-Mail Removed)>
> http://www.pobox.com/~skeet
> If replying to the group, please do not mail me too



 
Reply With Quote
 
bowman
Guest
Posts: n/a
 
      14th Feb 2005
George Remen wrote:

>
> Let me further clarify - I'm not a touch typist and I find that hitting
> shift every few letters is a serious speedbump.


With a good programming editor (gVim is my preference) yuo can map
frequently used words like Console or Writeline to one or two keystrokes.
Vim also has tab completion, which also save a lot of typing and spelling
errors.

If you are using VS, Ctrl-Space (I think) is similar, though I find the list
box annoying. Perhaps the funtionality can be customized.

 
Reply With Quote
 
Sean Hederman
Guest
Posts: n/a
 
      14th Feb 2005
Have a look at DevExpress CodeRush. Comes with template expansion,
intelligent anticipation of what you're going to type and a whole bunch of
other goodies.

"bowman" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed)...
> George Remen wrote:
>
>>
>> Let me further clarify - I'm not a touch typist and I find that hitting
>> shift every few letters is a serious speedbump.

>
> With a good programming editor (gVim is my preference) yuo can map
> frequently used words like Console or Writeline to one or two keystrokes.
> Vim also has tab completion, which also save a lot of typing and spelling
> errors.
>
> If you are using VS, Ctrl-Space (I think) is similar, though I find the
> list
> box annoying. Perhaps the funtionality can be customized.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Re: Minor puzzle: some UDF calls respect mixed case, others insist onlower case Dave Peterson Microsoft Excel Programming 0 1st May 2010 12:32 AM
Re: Minor puzzle: some UDF calls respect mixed case, others insist on lower case JLGWhiz Microsoft Excel Programming 2 30th Apr 2010 09:09 PM
Comparing text fields to find upper case lower case mismatches RAN Microsoft Access Queries 3 4th Dec 2008 04:34 PM
Can't find short cut for changing case ... upper case .... lower case JERRY Microsoft Word New Users 7 23rd Aug 2007 05:29 PM
Lower case, upper case mish mash in Headings-based bookmarks =?Utf-8?B?UnV0YWJhZ2E=?= Microsoft Word Document Management 3 10th May 2007 10:17 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 06:27 AM.