100% found this document useful (2 votes)
84 views40 pages

Get Programming With Types 1st Edition Vlad Riscutia Free All Chapters

Programming

Uploaded by

manarkretek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
100% found this document useful (2 votes)
84 views40 pages

Get Programming With Types 1st Edition Vlad Riscutia Free All Chapters

Programming

Uploaded by

manarkretek
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 40

Get ebook downloads in full at ebookmeta.

com

Programming With Types 1st Edition Vlad Riscutia

https://ebookmeta.com/product/programming-with-types-1st-
edition-vlad-riscutia/

OR CLICK BUTTON

DOWNLOAD NOW

Explore and download more ebook at https://ebookmeta.com


Recommended digital products (PDF, EPUB, MOBI) that
you can download immediately if you are interested.

Introduction to Dependent Types with Idris: Encoding


Program Proofs in Types 1st Edition Boro Sitnikovski

https://ebookmeta.com/product/introduction-to-dependent-types-with-
idris-encoding-program-proofs-in-types-1st-edition-boro-sitnikovski-2/

ebookmeta.com

Introduction to Dependent Types with Idris: Encoding


Program Proofs in Types 1st Edition Boro Sitnikovski

https://ebookmeta.com/product/introduction-to-dependent-types-with-
idris-encoding-program-proofs-in-types-1st-edition-boro-sitnikovski/

ebookmeta.com

Gentle Introduction to Dependent Types With Idris 1st


Edition Boro Sitnikovski

https://ebookmeta.com/product/gentle-introduction-to-dependent-types-
with-idris-1st-edition-boro-sitnikovski/

ebookmeta.com

Colonial Authority and Tami■ Scholarship A Study of the


First English Translations 1st Edition C T Indra (Editor)

https://ebookmeta.com/product/colonial-authority-and-tami%e1%b8%bb-
scholarship-a-study-of-the-first-english-translations-1st-edition-c-t-
indra-editor/
ebookmeta.com
A Reluctant Welcome for Jewish People Voices in Le Devoir
s Editorials 1910 1947 Canadian Studies Pierre Anctil

https://ebookmeta.com/product/a-reluctant-welcome-for-jewish-people-
voices-in-le-devoir-s-editorials-1910-1947-canadian-studies-pierre-
anctil/
ebookmeta.com

National Geographic Readers Puffins Pre Reader Maya Myers

https://ebookmeta.com/product/national-geographic-readers-puffins-pre-
reader-maya-myers/

ebookmeta.com

The Polish Navy 1918 45 From the Polish Soviet War to


World War II 1st Edition Przemys■aw Budzbon Paul Wright
Illustrator
https://ebookmeta.com/product/the-polish-navy-1918-45-from-the-polish-
soviet-war-to-world-war-ii-1st-edition-przemyslaw-budzbon-paul-wright-
illustrator/
ebookmeta.com

A Queerly Joyful Noise Choral Musicking for Social Justice


1st Edition Julia "Jules" Balén

https://ebookmeta.com/product/a-queerly-joyful-noise-choral-musicking-
for-social-justice-1st-edition-julia-jules-balen/

ebookmeta.com

The Struggle for Development and Democracy Volume 1 New


Approaches 1st Edition Alessandro Olsaretti

https://ebookmeta.com/product/the-struggle-for-development-and-
democracy-volume-1-new-approaches-1st-edition-alessandro-olsaretti/

ebookmeta.com
The Mayhem of Mermaids The Adventures of Smith and Jones 2
1st Edition Marie Andreas Andreas Marie

https://ebookmeta.com/product/the-mayhem-of-mermaids-the-adventures-
of-smith-and-jones-2-1st-edition-marie-andreas-andreas-marie/

ebookmeta.com
Examples in TypeScript

Vlad Riscutia

MANNING
Save 35% at manning.com!

Use the code humble535 at checkout to save on your first purchase


at manning.com.

Manning publishes high-quality books and courses for

technology professionals. Here are a few Manning advantages: Early


access

Don’t wait to start learning! In MEAP, the Manning Early

Access Program, you read books while they’re being written.

Access anywhere with liveBook

The Manning liveBook platform provides instant browser-based


access to our content.

Beyond books

Cutting edge liveProjects, liveAudio, and liveVideo courses give you


new ways to learn. Only available at manning.com

Impeccable quality

We believe in excellence. Our customers tell us we produce the


highest quality content you can buy.

Exclusive eBooks

Manning eBooks are only available from manning.com. You won’t find
them anywhere else.

Shop now at manning.com

Register to get exclusive

offers and updates!


Types and possible values

Name [Section]

TypeScript type

Possible values

Empty type [2.1.1]

never

No possible values

Unit type [2.1.2]

void

One possible value

Sum type [3.4.2]

number | string

A value from number or a value from

string

Tuple (product type)

[number, string]

A value from number and a value from

[3.1.1]

string

Record (product
{ a: number; b: string; }

A (named) value from number and a

type) [3.1.2]

(named) value from string

Function type [5.1.2]

(value: number) => string

A function number  string

Top type [7.2.1]

unknown

A value of any type

Bottom type [7.2.2]

never

No possible values (the bottom type is the

subtype of any other type)

Interface [8.1]

interface ILogger { /* ... */ }

Object of a type that implements the

ILogger interface

Class [8.2.1]

class Square { /* ... */ }


Object of type Square

Intersection type

Square & Loggable

Object with members of both Square and

[8.4.3]

of Loggable

Generic class

class List<T> { /* ... */ }

A generic class List with a type

[9.2.1]

parameter T

Generic function

type Func<T, U> = (arg: T) => U;

A function from T  U where T and U are

[9.1.1]

type parameters

Programming

with Types

WITH EXAMPLES IN TYPESCRIPT

VLAD RISCUTIA
MANNING

SHELTER ISLAND

For online information and ordering of this and other Manning books,
please visit

www.manning.com. The publisher offers discounts on this book when


ordered in quantity.

For more information, please contact

Special Sales Department

Manning Publications Co.

20 Baldwin Road

PO Box 761

Shelter Island, NY 11964

Email: [email protected]

©2020 by Manning Publications Co. All rights reserved.

No part of this publication may be reproduced, stored in a retrieval


system, or transmitted, in any form or by means electronic,
mechanical, photocopying, or otherwise, without prior written
permission of the publisher.

Many of the designations used by manufacturers and sellers to


distinguish their products are claimed as trademarks. Where those
designations appear in the book, and Manning Publications was
aware of a trademark claim, the designations have been printed in
initial caps or all caps.
Recognizing the importance of preserving what has been written, it is
Manning’s policy to have the books we publish printed on acid-free
paper, and we exert our best efforts to that end.

Recognizing also our responsibility to conserve the resources of our


planet, Manning books are printed on paper that is at least 15
percent recycled and processed without the use of elemental
chlorine.

Manning Publications Co.

Development editor: Elesha Hyde

20 Baldwin Road

Technical development editor: Mike Shepard

PO Box 761

Review editor: Aleksandar DragosavljevicŚhelter Island, NY 11964

Project manager: Lori Weidert

Copy editor: Kathy Simpson

Proofreader: Melody Dolab

Technical proofreader: German Gonzalez-Morris

Typesetter and cover designer: Marija Tudor

ISBN 9781617296413

Printed in the United States of America

To my wife, Diana, for her infinite patience

iv
contents

preface

xi

acknowledgments

xiii

about this book

xiv

about the cover illustration

xvii

1 Introduction to typing 1

1.1

Whom this book is for

1.2

Why types exist

0s and 1s

3 ■ What are types and type systems?

1.3
Benefits of type systems

Correctness

6 ■ Immutability

7 ■ Encapsulation

Composability

10 ■ Readability

12

1.4

Types of type systems

13

Dynamic and static typing

13 ■ Weak and strong typing

15

Type inference

16

1.5

In this book

17
2 Basic types 19

2.1

Designing functions that don’t return values

20

The empty type

20 ■ The unit type

22 ■ Exercises

23

2.2

Boolean logic and short circuits

23

Boolean expressions

24 ■ Short circuit evaluation

24

Exercise

26

vi

CONTENTS

2.3
Other documents randomly have
different content
To Mr. W――b.

London, February 4, 1768.

My dear Sir,

W HO would but converse when together, like persons that may


never meet again till launched into an endless eternity. I hope
this was in some measure our case, when we dined lately at Mr.
H――t’s. One of the company, I find, is gone, and I trust to eat bread
in the kingdom of heaven.

She is happy now, and we

Soon her happiness shall see.

In the midst of all your sorrow for the loss of so near and dear a
relation, methinks such a consideration may make you cry out,
Hallelujah! Amen! Come, Lord Jesus, come quickly. Blessed be
God, our turn will come by and by. Be ye also ready, is the loud call
of the present afflictive providence. That it may be duly heard, and
practically applied, is the hearty prayer of

Your sympathizing friend, and servant in our common


Lord,

G. W.

LETTER MCCCLXXXV.
To Mr. D――n.

London, April 6, 1768.


My very dear Friends,

I F you choose it, you may now be released; but the aspect of affairs
at home, is by no means promising. Many, many think of going
abroad. However, you will be so kind as to see the bearers of this
settled before you remove. Mr. C――ne, a worthy disinterested
creature, is to be steward of the house: he is a particular heart-friend
of Mr. W――t’s. Mr. W――t’s sister is an approved housekeeper,
and the little female orphans are to be committed to her care. Mr.
L――y hath had an university education, is a good writer and
accomptant, hath been with me some time, and is to be a school-
master. I long to know how poor Peter and Ephraim go on, and
likewise his sister at Savannah. I and Mr. W――t hope to follow
soon. But future things belong to Him who orders all things well. I
believe; Lord, help my unbelief. His work prospers. That is all in all.
Be pleased to have all accounts settled and audited, and take what
you please for your passage, if determined to return. But—but—God
keep you, through too fond affection, from taking a false step! My
heart is full. If you come away, and Mr. S――k also goes away, I
would have a letter of attorney given to Mr. C――ne. But it would be
well if I could hear from you first. God direct and bless you all. I can
only commend you to God and the word of his grace, and with ten
thousand thanks for all your labours of love, subscribe myself, very
dear friends,

Yours, &c. &c. &c. in our glorious Jesus,

G. W.

LETTER MCCCLXXXVI.
To Mr. J――ss.

London, May 17, 1768.


My dear Man,

G O forward, go forward, is the watch-word of the present day.


Never mind the envious cry of elder brethren. Had they been
harkened to, the prodigal must never have come home, nor Goliah’s
head have been cut off. All temple builders, especially when called
out to work in the field, must endure not only the contradictions of
sinners, but the contradiction of saints also. Happy are they who are
so deeply engaged in building, as not to have time to hearken to
either. I long to come and lend an helping, though feeble hand. But
Welch horses move slowly. If the Welch apostle comes, I purpose, in
the Whitsun week, to make a short excursion into Sussex and Kent,
and then for Bristol. Blessed be God, the shout of a king is heard in
our camps! All your family is well. All will be more than well, when we
come to our house in heaven. Let us march forward with palms of
victory in our hands, crying, “Hallelujah! the Lord God omnipotent
reigneth!” Tender love to all. I hope to answer Mrs. R――s person.
The Lord Jesus be with your spirits! Cease not to pray for, my dear
man,

Less than the least of all,

G. W.

LETTER MCCCLXXXVII.
To Mr. R―― K――n.

Edinburgh, June 15, 1768.

My dear Mr. K――n,

IHOPE this will find you and yours safe returned to London. I am
glad to hear by dear Mr. H――, that you left your daughter better:
may she be spared, not in judgment, but in mercy! Then all will be
well: nay, at all events, you may be assured all shall work for good,
because you love God. Glorious assurance this! Thanks be to God
for this unspeakable gift. Thanks be to his great name, for ordering
my steps this way. You would be delighted to see our Orphan-house
park assemblies; as large, attentive, and affectionate as ever.
Twenty-seven year old friends and spiritual children, remember the
days of old; they are seeking after their first love, and there seems to
be a stirring among the dry bones. I cannot yet tell when I shall
move. Probably within this fortnight. I must away to my throne. Love
to all at Tabernacle, and to all that are so kind as to enquire after,

Less than the least of all,

G. W.

LETTER MCCCLXXXVIII.
To Mr. A―― K――n.

Edinburgh, July 2, 1768.

My dear Timothy,

I AM much obliged to you for staying at London, till I return from


Scotland. My journey hither was certainly of God. Could I preach
ten times a day, thousands and thousands would attend. I have been
confined for a few days, but on Monday or Tuesday next hope to
mount my throne again. O to die there! Too great, too great an
honour to be expected. My wife will see my letter to Mr. S――ks. I
thank her for her kind letter just received. Pray tell Mr. K――n that no
Indian money will be remitted to the London trust from hence. The
interest of what is collected, which is near two thousand pounds, is
to be sent, as occasion requires, to Mr. Wheelock and the
Connecticut trust. Be pleased to send to Mr. Dilly, and desire him to
forward by the first ship, fifty of my letters to the Archbishop, directed
to Mr. Herdie at the custom-house, Leith. I am here only in danger of
being hugged to death. Friends of all ranks seem heartier and more
friendly than ever. All is of grace. Grace! grace! I thought to write you
a long letter: but company forbids. I go on in my old way, without
turning to the right hand or to the left. Providence says every day,
“This is the way, walk in it.” Tender love to all, particularly to my dear
wife. Next post she may expect to hear from,

Less than the least of all,

G. W.

LETTER MCCCLXXXIX.
To the Reverend Mr. T――.

Edinburgh, July 4, 1768.

My dear Friend,

W HAT various interruptions do we meet with in this lower world!


Sickness, preaching, and company, have prevented my
answering your kind letter more speedily. I strive to stir and fly as
formerly; but the earthly house of this tabernacle pulls me down.

Strange, that a harp of thousand strings,

Should keep in tune so long!

However, this is my comfort, the Redeemer still vouchsafes to smile


upon my feeble efforts. In London the word runs and is glorified, and
in Edinburgh, I trust, the prospect is promising. The fields are white
ready unto harvest. Who knows but some wheat may be gathered
into the heavenly garner? Many of my old friends are safely housed.
They are happy now, and we

Soon their happiness shall see.

Hallelujah!

Perhaps we may have one interview. I have thoughts of going to


M――. A week or a fortnight, at most, is the longest time I can stay
here. I desire to move, till I can move no more. O to die in the field! I
pray God to send Mrs. T―― a safe delivery. My wife is as well as
can be expected. Both descending in order to ascend

Where sin and pain and sorrow cease,

And all is calm and joy and peace.

I add one more hallelujah; and must hasten to subscribe myself, my


dear friend,

Less than the least of all,

G. W.

LETTER MCCCXC.
To Mr. R―― K――n.

Edinburgh, July 9, 1768.

My very dear Friend,

G OD be praised that all is so well at London. Every thing goes on


better and better here. But I am so worn down by preaching
abroad, and by talking at home almost all the day long, that I have
determined, God willing, to set off for London next Tuesday noon. I
shall mind all you say. You have acted quite right. As you do not
mention my wife, I suppose she is out of town. God prepare you and
yours for whatever he hath prepared for you, and support you under
your present and impending trial. Company prevents my enlarging.
Thus it is continually. Grace! grace! Hoping to see you soon, with
tender love to all, I beg leave to subscribe myself, my dear friend,

Ever yours, &c. &c. &c.

G. W.

LETTER MCCCXCI.
To Mr. J――ss.

London, August 16, 1768.

Dear Mr. J――ss,

B LESSED be the God and Father of our Lord Jesus Christ,


who hath so mercifully preserved you in your going out and
coming in, and caused you to triumph in every place! You may
continue your gospel range, till Mr. E――ds leaves London; then we
must think of Winter quarters. Let us work whilst it is day. The late
very unexpected breach, is a fresh proof that the night soon cometh
when no man can work ¹. Pray where may I find that grand promise
made to Abraham after Sarah’s death? May it be fulfilled in you,
whilst your Sarah is yet alive! Sweet bereavements, when God
himself fills up the chasm! Through mercy I find it so. Adieu. Tender
love to all. Brethren, pray for us. I suppose I must direct to brother
Adams at Rodborough. He expects you there. That you may be
owned in every place more and more, heartily prays, my dear man,

Yours, &c. &c. in our Jesus,


G. W.

¹ Mr. Whitefield’s wife died August 9th.

LETTER MCCCXCII.
To Mr. R―― K――n.

Trevekka, August 26, 1768.

My dear Friend,

I HAVE had the return of my old disorder; but blessed be God, I am


strengthened to preach the unsearchable riches of Jesus
Christ. We reached Gloucester on Monday, and came hither on
Wednesday afternoon. All we have met with exceeds description.
Early next Monday I purpose to set off for Bristol, and soon after
shall return to London. Brethren, pray for us. I believe you do; for
God is with us of a truth. I hope you and yours are supported. The
Redeemer is a present help in every time of need. Cordial respects
await all that love him in sincerity. Mr. L――d and a Londonner left
us to-day. I hope Mr. P――d and B――s make all possible dispatch.
God send dear Mr. H――y a good passage and safe return! Amen!
Amen! Lord, quicken my tardy pace!

Ever yours, &c. in Jesus,

G. W.

LETTER MCCCXCIII.
To the Same.

Bristol, August 30, 1768.

My very dear Friend,

W HAT we have seen and felt at the college is unspeakable.


Through mercy last night we came hither. My disorder has
returned. This may hasten me up: or rather hasten me to heaven. I
hope your daughter will have it revealed in her before she goes
hence. That is all in all. Is there any thing too hard for the Lord?

Surely, O God, thy grace is free,

For, O my God, it found out me!

In a day’s time my rout may be determined. P――d, &c. must make


haste. Captain J――ss comes up at the appointed time. Hearty love
awaits dear Mr. E――s, &c. &c. &c. Cease not to pray for, my very
dear friend,

Yours, &c. &c. in Jesus,

G. W.

P. S. Since writing the above I received yours. I find the


threatened blow is given. I hope both are enabled to say, “The Lord
hath given, and the Lord hath taken away: and blessed be the
name of the Lord.” Be pleased to send what letters you have for
me, and accept these few lines of condolance from, my dear Sir,

Yours, &c. &c. in an all-compassionate Jesus,

G. W.
LETTER MCCCXCIV.
To Mr. D――n.

London, September 1, 1768.

My very dear Mr. D――n,

I WAS exceeding glad to find, by your last kind favour, that you and
Mrs. D――n thought of deferring your embarkation for England till
the Spring. You will then see the newcomers quite settled, and I wish
I could add, see also your reasons for leaving Bethesda but of little
weight. I know your mind. Would to God your dear yoke-fellow was
like-minded. She will certainly be so very soon after her arrival in her
native country: but I would not grieve her. God bless you both!
Brownhill’s situation I much approve of. Poor Peter often engages
my thoughts. It pleases me to find that he goes on well; but I want to
have him settled. If not likely to make a scholar, or be in some good
station in the house, I wish he was put out to some proper business.
Not one prize as yet among all the young relations I have
endeavoured to provide for. Father, not my but thy sovereign will be
done! I wish you could enquire what is become of ――, sent over
with Mr. Wooldridge, Provost-Marshall at Augustine. You may guess
that I long to see the accompts. I doubt not of their being quite
compleat. Could you not send me a duplicate before your intended
embarkation, it would be very acceptable for many reasons. All your
dear relations on this side the water are well. My nearest relation
hath been quite well above a month. Mr. Middleton hath soon
followed after. His wife died a few weeks before him.

They are happy now, and we

Soon their happiness shall see.

Hallelujah! Hallelujah! Come, Lord, come! Praying still that, if it be


the divine will, you may be constrained to abide at Bethesda, I
subscribe myself, dear and faithful friends,

Yours, &c. &c. &c.

G. W.

LETTER MCCCXCV.
To Mr. S―― S――.

London, September 6, 1768.

My very dear Friend,

W HY should not one invalid write to another? What if we should


meet in our way to heaven unembodied, and consequently
freed from every thing that at present weighs down our precious and
immortal souls? But perhaps we are yet to sojourn a little longer on
earth. For these two days past, I have been unable almost to write.
To-day I am what they call better, and must improve my first strength
in sending a few lines to him whom I dearly love in the bowels of
Jesus Christ. May they find you and your dear partner leaning on
his bosom, who alone is able to bring out of every wilderness.
Neither are forgotten before his throne. Though absent in body, I am
present in spirit. Accept of love and sympathy unfeigned. I am
persuaded you are not unmindful of, very dear friend,

Less than the least of all,

G. W.

LETTER MCCCXCVI.
To Mr. R―― K――n.

London, September 19, 1768.

My dear Sir,

I APPROVE very much of Mr. Brooksbank’s motion, especially as


dear Mr. Middleton is gone. His burying is fixed for Wednesday
evening. Would you choose (with some other friends to whom I shall
write) to condescend to be a pallbearer. The conference to follow the
children as mourners. The children to be sent for in my carriage, and
sit with the pall bearers in my parlour. All to be invited that have a
mind to follow in mourning. The corpse to be brought privately to
Tabernacle on Tuesday night. I must away, for fear of the evening air.
I should be glad to see you at Tottenham-Court to-morrow afternoon.
By that time, I shall know Dr. C――r’s answer to Mr. Middleton’s
daughter’s letter. By which we shall judge the better how to act, in
regard to opening the intended subscription for the benefit of his
fatherless children. Blessed be God, I am better, but am ordered to
decline preaching. God’s will be done! Pray let Mrs. K――n make
free at Tabernacle-house as usual. God bless you both! God give
me patience to wait till my change comes! I am, my dear friend,

Yours most affectionately in our glorious Emmanuel,

G. W.
LETTER MCCCXCVII.
To Mr. S―― S――.

London, September 26, 1768.

My very dear Friend,

B LESSED be God for the art of writing! blessed be God for skill to
read and understand what is written! Thus we understand each
other, though at a thousand miles distance; thus I understand, and by
understanding learn to sympathize with my dear fellow-sufferer Mr.
S――. This is my comfort, that underneath him are the almighty
Redeemer’s everlasting arms. Therefore, being the beloved of the
Lord, he must dwell in safety. Though prevented by the weather
from using or drinking the Ramsgate waters, nothing can prevent his
using or drinking the waters of life freely. No, no: in every true
believer’s heart the Holy Ghost is a well of water springing up to life
eternal. Hence it is, that though he killeth, he maketh alive; though he
wounds, yet he heals. These words I was enabled to feel and
enlarge upon yesterday morning from my Tottenham-Court throne.
For some days the flux of blood hath stopped entirely. Praise the
Lord, O my soul! Lord Jesus, if it be thy blessed will, let me hear of
the recovery of my dear friend! Most cordial respects attend dear
Mrs. S――. God bless, support, and comfort her under her present
circumstances. Mr. Middleton is now made perfectly whole. He was
buried from the Tabernacle last Wednesday evening, and a
subscription is opened for his four orphans. In the midst of his
torturing pains, being asked by his daughter how he was, he
answered, “A heaven upon earth.” Soon afterwards he fell asleep in
Jesus. In Him I am, my very dear dear Sir,

Yours, yours, &c. &c. in our never-failing Jesus,


G. W.

LETTER MCCCXCVIII.
To Mr. R―― K――n.

Bristol, November 12, 1768.

My dear Mr. K――n,

T HROUGH infinite mercy we arrived here in due season. Last


night I hope the Redeemer manifested forth his glory. God
willing, I stay till next Thursday or Friday morning. Friday evening,
and the following Sunday, I shall preach at Bath. In three weeks
expect to reach London, except called before that period to reside at
the New-Jerusalem. The pleasing prospect lies day and night open
before me. On Monday, I suppose, dear Mr. H――y sets out for Bath.
All proper enquiry hath been made about his house. Particulars he
will be acquainted with on his arrival. Pray for me. Bethesda lies
upon my heart night and day. Something must be determined
speedily. As I trust my eye is single, God will assuredly direct my
goings in his way. Hitherto he hath helped: he will do so to the end.
Hallelujah! Hallelujah! God bless you and yours! Wonted cordial
christian salutations to all, who are so kind as to be concerned for,
and enquire after, my dear steady friend,

Less than the least of all,

G. W.

LETTER MCCCXCIX.
To Mr. A――s.

London, November 30, 1768.

My very dear Tommy,

T EN thousand thanks for your kind sympathy. Many thought I


should not hold out from Bath to London. But I cannot as yet go
to him whom, I trust, my soul loveth. Last Sunday I creeped up to my
gospel throne: this evening the same honour is to be conferred upon
me. Why me, Lord? why me? The prayers of God’s people detain
me here: for what end, the event only can discover. To be tried, we
may be assured. Mr. W――t is going with his brothers to Georgia, in
order to finish the wings of the intended college, and repair the
present buildings. I suppose they will sail in about a fortnight. You will
pray that Abraham’s God may be my God and my guide unto death.
He will, he will.

I would believe thy promise, Lord;

Lord, help my unbelief.

Cordial, most cordial respects await your whole self, and all who are
so kind as to enquire after, my very dear Tommy,

Less than the least of all,

G. W.

LETTER MCCCC.
To W―― P――, Esq.

London, December 14, 1768.


H OW unexpected a letter! what a kind present! Both came safe to
hand; both call for most grateful acknowledgments. My poor
prayers shall follow them: may they enter into the ears of the Lord of
Sabaoth! They will, they will. He is a God hearing prayer. You and
yours know it; otherwise how would you have been translated from
darkness to light! Marvellous, soul-transforming light! This, I trust,
you prove by daily experience, passing from glory to glory by the
Spirit of the Lord. Hence you increase in boldness; hence your
readiness to follow the Lamb whithersoever he goeth, though it
should be without the camp. Blessed be his name, for this honour
conferred upon ill and hell-deserving me. This may make dear Mr.
S――t easy, should I ever be called to Shropshire. I love the open
bracing air. Preaching within doors is apt to make us nervous,
especially to crouded auditories. These, I hope, he is blessed with.
God make him a successful fisher of men! I hope he and his are
enabled to walk in all the ordinances and commandments of the
Lord blameless. Blessed saving fruits of a living faith! blessed proofs
of having our past sins forgiven! As for those to come, I dare not to
mention their being forgiven, till committed. Moderate Calvinism I
take to be a medium between two extremes. I should not choose to
use expressions that need an apology. This seems to be a blemish in
Dr. Caisp, and other supralapsarian writers. A word to the wise is
enough. You will excuse this freedom, because it proceeds from love
unfeigned in, dear friend,

Less than the least of all,

G. W.

LETTER MCCCCI.
London, December 15, 1768.

My dear Friend,
Y OU will see the contents of my letter to Dr. E――e. I have conside
the affair of the picture. What think you? A limner who lately
drew me, and hung the picture up in the exhibition, asks forty
guineas for a copy. I shall not mind him, but send a bust taken
several years ago. It shall be paid for here, and presented as a token
of my hearty, hearty love to the Orphan-house at Edinburgh, and its
never-to-be-forgotten friends. Nothing but my disorder of body, God
willing, shall prevent my engagement in the plains of Philippi: But, I
fear, that will be an obstruction to so long a journey. You cannot tell
how low my late excursion only to Bristol and Bath brought me. But I
serve a God who killeth and maketh alive. I would leave future
events to Him, and like you merchants improve the present Now:
time is short; eternity is endless. The Judge hath sent this awful
message, “Behold, I come quickly.” That we all may be ready to go
forth to meet him, earnestly prays, my dear friend,

Less than the least of all,

G. W.

LETTER MCCCCII.
To Mr. T―― A――ms.

London, December 29, 1768.

My very dear Tommy,

M ANY thanks for your kind sympathetic congratulatory letter. Mr.


Wright is gone, or rather lies yet in the Downs. He is gone to
build for Him, who shed his precious heart’s-blood for ill and hell-
deserving me. Whether the unworthy Founder lives or dies, Bethesda
affair, I trust, will now be compleated. Strange, that I am now living!
Fifty-four years old last Tuesday. God be merciful to me a sinner! a
sinner! a sinner! Less than the least of all, must be my motto still. As
such, continue to pray for me. That you and yours, and all the elect
people of God around you, may increase with all the increase of
God, continually prays, my very dear Tommy,

Ever yours, &c. &c. in our Jesus,

G. W.

LETTER MCCCCIII.
London, January 13, 1769.

My dear Sir,

W ITH regret I send the inclosed; but alas! they were borrowed.
May the prayers put up for the writers, enter into the ears of
the Lord of Sabaoth. They will, they will. And what then? What then?
Why, they will turn out good soldiers of Jesus Christ. That this may
be their happy lot, earnestly prays,

Less than the least of all,

G. W.

LETTER MCCCCIV.
To Mr. C―― H――y.

London, February 4, 1769.

My dear Sir,
HOPE this will find you safe arrived at Bath, in your way to London. I
I thank God that matters have turned out no worse at Plymouth. I
see more and more every day, that things and persons are only
what an all-wise, almighty Jesus is pleased to make them. Happy,
happy they that have their all in Him, who is indeed our All in All!
This, I believe, is your happy lot. Grace! grace! This may teach us to
look to Jesus in all our concerns and motions. What his will may be
concerning my voyage to Georgia, I know not. At present the cloud
doth not move that way. But you may be assured, it never entered
my heart to think of embarking without settling the minutest matter to
mutual satisfaction. But more of this when we meet. Lord, hasten
our glorious meeting in the kingdom of heaven.

There sin and strife and sorrow cease,

And all is calm and joy and peace.

I hope all is well in Green-street. Hearty love to all. All here send
greeting. A good time at Mercer’s chapel. Grace! grace! I know you
will join in saying Amen, with, my dear Sir,

Less than the least of all,

G. W.

LETTER MCCCCV.
To Mr. S――e.

London, February 27, 1769.

My dear Mr. S――e,


OT want of love, but of leisure, hath prevented my making proper
acknowledgments for your kind letter, and late publication. I
N think it is well written; and I earnestly pray, that it may be
blessed to many. One passage seems exceptionable, where
you say, “That all believers were originally endowed with the
extraordinary gifts of the Holy Ghost.” The instances urged to prove
it, seem quite deficient. This is not written to find fault, but to prevent
fault finding. That you may be much owned in every thing you
undertake, and, with all the Christian Sheerness brethren, increase
with all the increase of God, is the hearty prayer of,

Less than the least of all,

G. W.

P. S. Blessed be God, the shout of the King of kings is yet to be


heard amongst us. Grace! grace!

LETTER MCCCCVI.
To Mr. A――s.

London, March 11, 1769.

My very dear Tommy,

Y OUR consciousness of my settled friendship, will not permit you


to interpret my silence to a want of love. How great that is, and
on what a solid basis it is founded, the great day will discover.
Through infinite mercy, I am enabled to preach thrice a week,
besides other occasional exercises; and indeed (O amazing
condescension!) the shout of the King of kings is amongst us. After
Easter, I hope to make an elopement to Gloucestershire, and some
western parts. Could you, upon the receipt of this, go to Bristol? Mr.
B――s must come immediately to London. I feel the loss of my right

You might also like